﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FluentNHibernate.Mapping;

namespace AssetAllocationSystem.Models.Mapping
{
    public class LocationMapping : ClassMap<Location>
    {
        public LocationMapping()
        {
            Table("Location");
            Id(a => a.Id);
            Map(a => a.Name);
            Map(a => a.Code);
            HasMany(a => a.Assets);
            HasMany(a => a.Employees);
        }
    }
}